<template>
  <uv-toast ref="toast"></uv-toast>
</template>

<script setup >
import { globalToastState, params } from '@/composables/toast/index'
import { ref, watch } from 'vue'

const toast = ref(null)
watch(globalToastState, (value) => {
  toast.value.show(params.value)
})
</script>
